Api.ReadAxisOutputByte method

Reads a byte from an output of a real or simulated axis with a byte offset.

Namespace: IntervalZero.KINGSTAR.Local.Api

Assembly: IntervalZero.KINGSTAR.Local.Api (in IntervalZero.KINGSTAR.Local.dll) Version: 4.5.0.0

Syntax

C#VB
public KsReturn<byte> ReadAxisOutputByte(
       int Index,
       int ByteOffset
)
Public Function ReadAxisOutputByte(
       Index As Integer,
       ByteOffset As Integer
) As KsReturn(Of Byte)

Parameters

Index

Type: Int32

The index of an axis. Indexes are zero based. Aliases affect this parameter.

 

ByteOffset

Type: int

Specifies a byte offset to the location to read a byte value. The max offset is determined by OutputLength in the SlaveStatus class.

Return value

Type: KsReturn<byte>

Returns a KsError code and a byte value.

Remarks

ReadAxisOutputByte can only be called once a link is established and started.

Usable EtherCAT states

ecatOP

Examples

C#
N/A

See also

Api Class

IntervalZero.KINGSTAR.Local.Api Namespace